<template>
    <div>
        <el-form :model="must_form"
            class="search_prod"
            label-width="120px">
            <el-form-item label="用户名">
                <el-col :span="4">
                    <el-col :span="16"
                        class="search_input_width">
                        <el-input size="small"
                            clearable
                            v-model="must_form.username"></el-input>
                    </el-col>
                </el-col>
                <el-col class="tr col_label"
                    :span="3">用户昵称&nbsp;&nbsp;&nbsp;</el-col>
                <el-col :span="4">
                    <el-col :span="16"
                        class="search_input_width">
                        <el-input size="small"
                            clearable
                            v-model="must_form.nickname"></el-input>
                    </el-col>
                </el-col>
                <el-col class="tr col_label"
                    :span="3">订单号&nbsp;&nbsp;&nbsp;</el-col>
                <el-col :span="4">
                    <el-col :span="16"
                        class="search_input_width">
                        <el-input size="small"
                            clearable
                            v-model="must_form.oid"></el-input>
                    </el-col>
                </el-col>
            </el-form-item>
            <el-form-item label="期类型">
                <el-col :span="4">
                    <el-col :span="16"
                        class="search_input_width">
                        <el-select v-model="must_form.stage_type"
                            placeholder=""
                            size="small">
                            <el-option v-for="(item,k) in type_option"
                                :key="k"
                                :label="item.label"
                                :value="item.value">
                            </el-option>
                        </el-select>
                    </el-col>
                </el-col>
            </el-form-item>
            <el-form-item>
                <el-row class="tl">
                    <el-col :span="24">
                        <el-button size="mini"
                            type="primary"
                            :loading='$store.state.isLoading'
                            @click="order_search_btn">查询</el-button>
                        <el-button size="mini"
                            type="primary"
                            :loading='$store.state.isLoading'
                            @click="del_search_btn">一键清除</el-button>
                    </el-col>
                </el-row>
            </el-form-item>

        </el-form>
    </div>
</template>
<script>
export default {
  name: "coinmust_search",
  data() {
    return {
      type_option: [
        {
          label: "7天周期",
          value: "stage_7"
        },
        {
          label: "30天周期",
          value: "stage_30 "
        },
        {
          label: "50天周期",
          value: "stage_50"
        }
      ],
      must_form: {}
    };
  },
  components: {},
  methods: {
    del_search_btn() {
      this.must_form = {};
      this.$emit("send_search", this.must_form);
    },
    order_search_btn() {
      this.$emit("send_search", this.must_form);
    }
  }
};
</script>
<style scoped>
</style>
